<?php
require_once 'lib/googleapi/src/Google/Client.php';



$client = new Google_Client();
$client->setApplicationName('Allen Analytics');
$client->setClientId('705106886987-nn9uolr5hfchbibcil6jl9tmcesu835j.apps.googleusercontent.com');
$client->setClientSecret('j0JkbgPCz_qU_hLIXYAyZ4Fr');
$client->setRedirectUri('https://localhost/ta');
$client->setDeveloperKey('AIzaSyAeW27xnKHW4QBPfHMJPvcvlpjT8vUv5mQ');
$client->setScopes(array('https://www.googleapis.com/auth/analytics.readonly','https://www.googleapis.com/auth/userinfo.email','https://www.googleapis.com/auth/userinfo.profile'));
//$client->setAccessType('offline');
//$authUrl = $client->createAuthUrl();
//$client->setAccessToken($_SESSION['token']);